<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>归物 - 移动端适配测试</title>

    <!-- 网站图标 -->
    <link rel="icon" type="image/png" href="src/main/resources/static/icon.png">
    <link rel="shortcut icon" type="image/png" href="src/main/resources/static/icon.png">
    <link rel="apple-touch-icon" href="src/main/resources/static/icon.png">

    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet">
    <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" rel="stylesheet">
    <style>
        body {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        .main-container {
            background: white;
            border-radius: 20px 20px 0 0;
            margin: 20px;
            margin-bottom: 0;
            min-height: calc(100vh - 40px);
            box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
        }
        .header-section {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border-radius: 20px 20px 0 0;
            padding: 30px;
        }
        .stats-card {
            background: rgba(255, 255, 255, 0.2);
            border-radius: 15px;
            padding: 20px;
            text-align: center;
            backdrop-filter: blur(10px);
        }
        .stats-number {
            font-size: 2rem;
            font-weight: bold;
            word-break: break-all;
            overflow-wrap: break-word;
        }
        .item-card {
            border-left: 4px solid #007bff;
        }
        .category-badge {
            font-size: 0.8rem;
        }
        .price-text {
            color: #28a745;
            font-weight: bold;
            word-break: break-all;
            overflow-wrap: break-word;
        }
        
        /* 移动端适配 */
        @media (max-width: 576px) {
            .stats-number {
                font-size: 1.2rem;
            }
            .stats-card {
                padding: 15px 10px;
            }
            .header-section {
                padding: 20px 15px;
            }
            .main-container {
                margin: 10px;
                border-radius: 15px;
            }
        }
        
        @media (max-width: 400px) {
            .stats-number {
                font-size: 1rem;
            }
            .stats-card {
                padding: 10px 5px;
            }
            .card-title {
                font-size: 0.9rem;
            }
            .price-text {
                font-size: 0.9rem;
            }
        }
    </style>
</head>
<body>
    <div class="main-container">
        <!-- 头部统计区域 -->
        <div class="header-section">
            <div class="row g-3">
                <div class="col-6">
                    <div class="stats-card">
                        <div class="stats-number">¥4999.00</div>
                        <div>总资产</div>
                    </div>
                </div>
                <div class="col-6">
                    <div class="stats-card">
                        <div class="stats-number">¥4.45</div>
                        <div>日均价格</div>
                    </div>
                </div>
            </div>
        </div>

        <!-- 搜索区域 -->
        <div class="p-3">
            <div class="input-group mb-3">
                <input type="text" class="form-control" placeholder="搜索物品名称..." value="">
                <button class="btn btn-outline-primary" type="button">
                    <i class="fas fa-search"></i> 搜索
                </button>
            </div>

            <div class="mb-3">
                <button class="btn btn-outline-secondary me-2">全部</button>
                <button class="btn btn-primary">电子产品</button>
            </div>
        </div>

        <!-- 物品卡片 -->
        <div class="px-3">
            <div class="row">
                <div class="col-md-6 col-lg-4 mb-3">
                    <div class="card item-card h-100">
                        <div class="card-body">
                            <div class="d-flex justify-content-between align-items-start mb-2">
                                <h6 class="card-title mb-0">iPhone 13</h6>
                                <span class="badge bg-primary category-badge">电子产品</span>
                            </div>
                            
                            <div class="row text-center">
                                <div class="col-6">
                                    <div class="price-text">¥4999.00</div>
                                    <small class="text-muted">价格</small>
                                </div>
                                <div class="col-6">
                                    <div>1124天</div>
                                    <small class="text-muted">使用时间</small>
                                </div>
                            </div>
                            
                            <div class="text-center mt-2">
                                <small class="text-danger">日均: ¥4.45</small>
                            </div>
                            
                            <div class="text-muted mt-2">
                                <i class="fas fa-calendar-alt"></i> 入手时间: 2022-07-01
                            </div>
                            
                            <div class="d-flex gap-2 mt-3">
                                <button class="btn btn-outline-primary btn-sm flex-fill">
                                    <i class="fas fa-edit"></i> 编辑
                                </button>
                                <button class="btn btn-outline-danger btn-sm flex-fill">
                                    <i class="fas fa-trash"></i> 删除
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!-- 底部导航 -->
    <nav class="navbar fixed-bottom navbar-light bg-light border-top">
        <div class="container-fluid d-flex justify-content-around">
            <a href="#" class="nav-link text-center active">
                <i class="fas fa-chart-line"></i>
                <div style="font-size: 0.8rem;">资产</div>
            </a>
            <a href="#" class="nav-link text-center">
                <i class="fas fa-plus"></i>
                <div style="font-size: 0.8rem;">添加</div>
            </a>
            <a href="#" class="nav-link text-center">
                <i class="fas fa-user"></i>
                <div style="font-size: 0.8rem;">我的</div>
            </a>
        </div>
    </nav>

    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>
